package br.ufrj.cg.main;

import br.ufrj.cg.controller.MainWindowController;
import br.ufrj.cg.controller.MainWindowListener;
import br.ufrj.cg.controller.MainWindowMouseListener;
import br.ufrj.cg.view.MainWindow;

public class Main {

	public static void main(String[] args) {
		MainWindow mainWindow = new MainWindow();
		
		MainWindowController mainWindowController = new MainWindowController(mainWindow);
		
		MainWindowListener mainWindowListener = new MainWindowListener(mainWindow, mainWindowController);
		
		MainWindowMouseListener mainWindowMouseListener = new MainWindowMouseListener(mainWindow, mainWindowController);
		
		mainWindow.configureListener(mainWindowListener);
		mainWindow.configureMouseListener(mainWindowMouseListener);
		
		mainWindowController.start();
	}
}
